package com.temp.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class RouteDTO {

    private Long id;

    private Long parentId;

    @NotBlank(message = "apiMsg.routeNotNull")
    private String path;

    private String redirect;

    @NotBlank(message = "apiMsg.routeNameNotNull")
    private String name;

    @NotBlank(message = "apiMsg.routeComNotNull")
    private String component;

    @NotBlank(message = "apiMsg.routeTitleNotNull")
    private String title;

    private String icon;

    private int sort;

    private int hidden;

    @NotNull(message = "apiMsg.statusNotNull")
    private int status;
}
